package net.betou.cms.dao.main.impl;

import net.betou.cms.dao.main.ContentTxtDao;
import net.betou.cms.entity.main.ContentTxt;
import net.betou.common.hibernate3.HibernateBaseDao;

import org.springframework.stereotype.Repository;

@Repository
public class ContentTxtDaoImpl extends HibernateBaseDao< ContentTxt, Integer > implements ContentTxtDao{
	public ContentTxt findById( Integer id ) {
		ContentTxt entity = get( id );
		return entity;
	}

	public ContentTxt save( ContentTxt bean ) {
		getSession( ).save( bean );
		return bean;
	}

	@Override
	protected Class< ContentTxt > getEntityClass( ) {
		return ContentTxt.class;
	}
}